package com.zr.planClass.mapper;

import com.zr.planClass.model.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by 非常狂躁的猪 on 2019/12/20.
 */
@Mapper
public interface PlanClassMapper {

     int queryByName( String name);

    int queryByCode(String code);

    void addPlanClass(PlanClassVo planClassVo);

    PlanClassUpdateVo getPlanByCode( String code);

    Integer update(PlanClassVo planClassVo);

    PlanClassUpdateVo getPlanByName( String name);

    List<PlanClassVo> queryAllPlan(PlanClassSelectVo planClassSelectVo);

    Integer queryCount(PlanClassSelectVo planClassSelectVo);

    PlanClassUpdateVo  queryById(Integer id);

    void updateStatusById(PlanClassVo planClassVo);

    int updateStatusQueryById( Integer id);

    List<PlanClassVo> queryExport(PlanClassSelectVo planClassSelectVo);
}
